package main

import (
	"context"
	"fmt"
	"time"
)

func main() {
	ctx := context.Background()
	ctxSon, cancel := context.WithCancel(ctx)
	cancel()
	fmt.Println(<-ctxSon.Done())

	time.Sleep(5 * time.Second)
}
